package cn.bfay.lion.jingdong.error;

import cn.bfay.web.exception.enums.ErrorType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 京东业务错误-201开头(京东码开头是2).
 *
 * @author wangjiannan
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum BusinessError implements ErrorType {
    SYSTEM_ERROR("200001", "系统错误"),

    //PRODUCT_EXIST(201001, "商品已存在"),
    PRODUCT_SOLD_OUT("201002", "商品已下架"),
    //UPDATE_PRODUCT_NOT_EXIST(201003, "所更新商品不存在"),
    //UPDATE_PRODUCT_NOT_UPDATE(201004, "当前商品无需更新"),
    PRODUCT_ADD_ERROR("201005", "添加商品失败,稍后再试"),
    PRODUCT_NOT_EXIST("201006", "商品不存在"),
    //PRODUCT_URL_ERROR("201007", "商品地址错误"),
    PRODUCT_NOT_SUPPORT("201008", "暂不支持当前商品");

    private String code;
    private String message;
}